POV-Ray : Newsgroups : povray.general : Height fields in isos (3.5) : Re: Height fields in isos (3.5) Server Time
6 Aug 2024 19:25:12 EDT (-0400)
  Re: Height fields in isos (3.5)  
From: Grey Knight
Date: 12 Feb 2002 07:32:30
Message: <3C690B55.2AE3439C@namtar.qub.ac.uk>
I tried to use this in my IRTC entry, but it produces the blocky hf
effect we're all familiar with, plus you can't use the smooth keyword
anymore. On the upside, you can use non-flat blocks by adding a smooth
function...

Tom Melly wrote:
> 
> have I imagined it, or can you use an hf as a pigment and then use that in an
> iso-function?
> 
> If so, can someone post a quick example?
> 
> --
> #macro G(D,E,F)#local I=array[3]{D,E,F}#local B=0;triangle{#while(
> B<3)#while(I[B])A[mod(I[B],10)]+#local I[B]=div(I[B],10);#end<-5,-
> 2,9>#local B=B+1;#end}#end #local A=array[7]{x,x*2,x*4,y,y*2,y*4,z
> }light_source{-x*6-z*9,1}mesh{G(105,10,146)G(105,246,10)G(105,56,
> 146)G(105,1256,246)G(1256,126,220)G(22156,2216,201)pigment{rgb 1}}//TM

-- 
signature{
  "Grey Knight" contact{ email "gre### [at] yahoocom" }
  site_of_week{ url "http://digilander.iol.it/jrgpov" }
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.